import { SET_CHANNELS } from '../actionTypes'

const initState = [] // 初始频道数据
export default function user (state = initState, { type, payload }) {
  console.log(type, payload)
  if (type === SET_CHANNELS) {
    return payload
  }
  return state
}
